package com.ss.android.messagebus;

import com.ss.android.messagebus.a.AsyncMessageHandler;
import com.ss.android.messagebus.a.c;
import com.ss.android.messagebus.a.d;
import com.ss.android.messagebus.a.e;
import java.util.Collections;
import java.util.LinkedList;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public final class bb {
    final class a {
        public final bb f;
        c a;
        c b;
        c c;
        Map d;
        com.ss.android.messagebus.b.a e;

        a(bb arg1, byte arg2) {
            this(arg1);
        }

        private a(bb arg2) {
            this.f = arg2;
            this.a = new e();
            this.b = new d();
            this.c = new AsyncMessageHandler();
            this.d = new ConcurrentHashMap();
            this.e = new com.ss.android.messagebus.b.a();
        }
    }

    ThreadLocal a;
    com.ss.android.messagebus.bb.a b;
    f c;
    private static bb d;
    private final Map e;

    public bb() {
        this.e = new ConcurrentHashMap();
        this.c = new f(this.e);
        this.b = new com.ss.android.messagebus.bb.a(this, (byte) 0);
        this.a = new com.ss.android.messagebus.c();
        Collections.synchronizedList(new LinkedList());
    }

    public static bb getInstance() {
        if(d == null) {
            Class v1 = bb.class;
            synchronized (v1){
                if(d == null) {
                    d = new bb();
                }
            }
        }

        return d;
    }

    static Map a(bb arg1) {
        return arg1.e;
    }
}

